package cn.quang.search.admin.service;

import cn.quang.search.admin.entity.dto.Operator;
import cn.quang.search.admin.entity.dto.Pagination;
import cn.quang.search.admin.entity.dto.Result;
import cn.quang.search.admin.entity.vo.datasource.*;
import cn.quang.search.admin.entity.vo.table.TableDataSourceTreeVO;

import java.util.List;

/**
 * @author:  Entity Generator
 * @since:  2024-02-27 17:43:11
 */
public interface IEntityDataSourceService {
//    Result<Pagination<DataSourceListItemVO>> list4View(Operator operator, DataSourceQueryRequest request);

//    Result<DataSourceDetailVO> detail4View(Operator operator, long dataSourceId);

    Result<Long> add(Operator operator, DataSourceRequest request);

    Result<?> update(Operator operator, long dataSourceId, DataSourceRequest request);

    Result<?> delete(Operator operator, long dataSourceId);

    Result<List<TableDataSourceTreeVO>> allDataSource4Cascade();

    Result<String> testConnection(Operator operator, TestConnectionRequest request);
}
